﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="SqlClrTypeMetadataCollection.cs" company="MyCoreLib">
//   Copyright (C) 2014 Alexey Evlampiev. All rights reserved.
// </copyright>
// <summary>
//   Defines the SqlClrTypeMetadataCollection type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------



namespace MyCoreLib.Automation.Data.SqlClient.Metadata
{
    using System;
    using System.Collections.Generic;
    using System.Collections.ObjectModel;
    using System.Data;
    using System.Data.SqlClient;
    using System.Text.RegularExpressions;

    public class SqlClrTypeMetadataCollection : SqlDbObjectMetadataCollection<SqlClrTypeMetadata>
    {        
        public SqlClrTypeMetadataCollection(IEnumerable<SqlClrTypeMetadata> typesMetadata) 
        {
            if (ReferenceEquals(typesMetadata, null))
            {
                throw new ArgumentNullException("typesMetadata");
            }

            foreach (var metadata in typesMetadata)
            {                
                this.Add(metadata);   
            }            
        }
        
    }
}
